Skip to content

docs(readme): 新增安装方式:uv#20

Merged
MistEO merged 2 commits intoMAA-AI:mainfrom
HuanLinOTO:patch-1
Dec 26, 2025
Merged

docs(readme): 新增安装方式:uv#20
MistEO merged 2 commits intoMAA-AI:mainfrom
HuanLinOTO:patch-1

Conversation

@HuanLinOTO
Copy link
Copy Markdown
Contributor

@HuanLinOTO HuanLinOTO commented Dec 24, 2025

另外:如果用户使用非全局 python ,在 Cherry Studio 中是无法直接使用的

解决方案:直接用 uvx

由 Sourcery 提供的总结

将基于 uv 的安装记录为主要推荐方法,并相应更新使用示例。

文档:

  • 添加基于 uv 的安装作为推荐方法,与现有的 pip 和源码安装选项并列。
  • 更新 Cherry Studio 配置示例,通过 uvx 调用 MCP,而不是直接使用 maa-mcp 命令。
Original summary in English

Summary by Sourcery

Document uv-based installation as the primary recommended method and update usage examples accordingly.

Documentation:

  • Add uv-based installation as the recommended method alongside existing pip and source installation options.
  • Update Cherry Studio configuration example to invoke the MCP via uvx instead of a direct maa-mcp command.

另外:如果用户使用非全局 python ,在 Cherry Studio 中是无法直接使用的

解决方案:直接用 uvx
Copilot AI review requested due to automatic review settings December 24, 2025 17:08
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - 我在这里给出了一些总体反馈:

  • 建议简单提一下 uvx 依赖已安装的 uv,并附上链接或安装提示,这样不熟悉 uv 的用户也能了解如何使用推荐的方式。
  • 既然现在推荐使用 uvx maa-mcp,那么在 Cherry Studio 配置部分中,可能需要说明通过 pip 安装的用户仍然可以直接使用 maa-mcp 命令,以避免两种调用方式之间产生混淆。
给 AI Agent 的提示词
Please address the comments from this code review:

## Overall Comments
- Consider briefly mentioning that `uvx` requires `uv` to be installed and linking or hinting at how to install it, so users unfamiliar with `uv` understand how to use the recommended method.
- Since `uvx maa-mcp` is now the recommended way, it may be helpful to clarify in the Cherry Studio configuration section that users who installed via `pip` can still use the plain `maa-mcp` command, to avoid confusion between the two invocation methods.

Sourcery 对开源项目是免费的 —— 如果你觉得我们的代码审查有帮助,欢迎分享给更多人 ✨
帮我变得更有用!请在每条评论上点选 👍 或 👎,我会根据你的反馈改进后续的审查。
Original comment in English

Hey - I've left some high level feedback:

  • Consider briefly mentioning that uvx requires uv to be installed and linking or hinting at how to install it, so users unfamiliar with uv understand how to use the recommended method.
  • Since uvx maa-mcp is now the recommended way, it may be helpful to clarify in the Cherry Studio configuration section that users who installed via pip can still use the plain maa-mcp command, to avoid confusion between the two invocation methods.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider briefly mentioning that `uvx` requires `uv` to be installed and linking or hinting at how to install it, so users unfamiliar with `uv` understand how to use the recommended method.
- Since `uvx maa-mcp` is now the recommended way, it may be helpful to clarify in the Cherry Studio configuration section that users who installed via `pip` can still use the plain `maa-mcp` command, to avoid confusion between the two invocation methods.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the documentation to recommend uv/uvx as the primary installation method for maa-mcp, addressing an issue where users with non-global Python installations cannot directly use the package in Cherry Studio.

Key changes:

  • Promotes uvx to the recommended (first) installation method
  • Updates the Cherry Studio configuration example to use uvx maa-mcp
  • Reorders existing installation methods (pip becomes method 2, source installation becomes method 3)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment on lines +79 to +83
#### 方式一:通过 uv 安装(推荐)

```bash
uvx maa-mcp
```
Copy link

Copilot AI Dec 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section title says "通过 uv 安装" (Install via uv), but the command uvx maa-mcp doesn't actually install the package - it runs it in an ephemeral environment. Consider either:

  1. Changing the title to "方式一:通过 uvx 运行(推荐)" to reflect that it runs rather than installs, or
  2. Adding explanation that uvx automatically manages the package in an isolated environment without requiring explicit installation.

This will help users understand that they don't need a separate installation step when using uvx.

Copilot uses AI. Check for mistakes.
Add installation instructions for uv.
@MistEO
Copy link
Copy Markdown
Collaborator

MistEO commented Dec 25, 2025

英文文档也一起改下?

@MistEO MistEO merged commit 592043f into MAA-AI:main Dec 26, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants